{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/member_pay/index',['member_id'=>input('param.member_id')])}">会员支付管理</a></li>
            <li class="layui-this">添加会员支付</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="{:url('admin/member_pay/add')}" method="post">
                    <input type="hidden" name="member_id" value="{:input('param.member_id')}">
                    <div class="layui-form-item">
                        <label class="layui-form-label">付款金额 ：</label>
                        <div class="layui-input-block">
                            <input type="text" name="gross" placeholder="请输入付款金额" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">会员等级 :</label>
                        <div class="layui-input-block">
                            <select name="level">
                                {if condition="$member_level"}
                                    {volist name="member_level" id="v"}
                                        <option value="{$v.level_name}">{$v.level_name}</option>
                                    {/volist}
                                {/if}
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">支付时间 :</label>
                        <div class="layui-input-block">
                            <input type="text" name="pay_time" placeholder="请输入支付时间" class="layui-input datetime">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">到期时间 :</label>
                        <div class="layui-input-block">
                            <input type="text" name="expire_time" placeholder="请输入到期时间" class="layui-input datetime">
                        </div>
                    </div>
                    
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="*">保存</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}